Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): Call debug log methods after setting the loglevel based upon config/cli-options #2837

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

JakeChampion
Copy link

Currently the debug message about where the configfile was loaded from is always shown, regardless of the user defined loglevel. I've moved those debug messages to be done after the user's defined loglevel has been set which enables the user to choose whether they see this message or not :-)

Alternative fix the problem described in #2658

lib/config.js Outdated
// if no config file path is passed, we define a dummy config module.
configModule = function () {}
}

var config = new Config()
var config = new Config()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems unrelated/wrong indentation

Copy link
Author

@JakeChampion JakeChampion Oct 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite sure how that happened, I've fixed it via the Github editor.

@JakeChampion
Copy link
Author

@dignifiedquire updated pr in line with your review

@dignifiedquire dignifiedquire merged commit e23c0d4 into karma-runner:master Nov 22, 2017
@dignifiedquire
Copy link
Member

Thank you :octocat:

@JakeChampion JakeChampion deleted the logs branch November 22, 2017 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants